<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-add.php");
?>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../asset/css/employee.css" rel="stylesheet" type="text/css"/>
    <? include_once(ROOT_PATH_ . "/controller/common/module/head.php"); ?>

</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?>
        </div>






        <div id="content">
            <?php $page_title='新增员工';?>
            <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>





<div class="flash_box">
 1.新增员工后产生工号，登陆账号默认为工号。
</div>

<form id="add-employee-form" method="post"
      action="detail-add-function.php?now_extender=employee"
      enctype="multipart/form-data" class="layui-form detail-box">


    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="ai_name" lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input" value="">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
            <input type="text" name="ai_mima" lay-verify="required" class="layui-input" value="cd123">
        </div>
    </div>






        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-block">
                <input type="text" name="ai_phone" placeholder="请输入电话" autocomplete="off" class="layui-input" value="">
            </div>
        </div>






        <div class="layui-form-item">
            <label class="layui-form-label">登陆权限</label>
            <div class="layui-input-block">
                <input type="radio" name="ai_authority" value="是" title="是" >
                <input type="radio" name="ai_authority" value="否" title="否" >
            </div>
        </div>




        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="ai_status" value="在职" title="在职" >
                <input type="radio" name="ai_status" value="辞职" title="辞职" >
                <input type="radio" name="ai_status" value="辞退" title="辞退" >
                <input type="radio" name="ai_status" value="休假" title="休假" >
<!--                <input type="radio" name="ai_status" value="产假" title="产假" >-->
<!--                <input type="radio" name="ai_status" value="带薪假期" title="带薪假期" >-->
            </div>
        </div>








<? if(in_array("admin",$quanxian)){?>
        <div class="layui-form-item">
            <label class="layui-form-label">系统权限</label>
            <div class="layui-input-block">


                            <input type="checkbox" name="ai_quanxian[]" value="admin" title="管理员"  >

                            <?foreach ($plate as $k=>$v) {
                                if($v['status']=='public'){?>
                                    <div>
                                        <input type="checkbox" name="ai_quanxian[]" value="<?echo $k?>" title="<?echo $v['name']?>"   >
                                        ：
                                        <?foreach ($v['permission'] as $k2=>$v2) {?>
                                            <input type="checkbox" name="ai_quanxian[]" value="<?echo $v2?>" title="<?echo str_replace($v['name']."_","",$v2)?>"   >
                                            <?;}?>

                                    </div>
                                <?}?>
                            <?}?>


            </div>
        </div>
<?}?>







        <input name="now_extender" type="hidden" value="<? echo $system_part ?>"/>
        <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
        <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>









    <div class="function">
      <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>

</form>





        </div>



<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?> </body>
</html>

